import http from '../utils/http.js'
const user = {
	wxLogin(data) {
		return http.post(`/user/wxLogin`, data);
	},
	login(data) {
		return http.post(`/user/buyerLogin`, data);
	},
	register(data) {
		return http.post(`/user/create`, data);
	},
	findAddress() {
		return http.get(`/address`);
	},
	createAddress(data) {
		return http.post(`/address`, data);
	},
	updateAddress(data) {
		return http.put(`/address`, data);
	}
}

export default user;
